<script setup>
import NavItem from './navItem.vue'
import CommonData from '../utils/commonData.js'
</script>

<template>
  <!--左侧菜单-无限递归子菜单-不限制菜单级别数量效果-->
  <!--左侧菜单结构-->
  <el-menu
    active-text-color="#ffd04b"
    background-color="#232323"
    :default-active="$route.path"
    text-color="#fff"
    router
  >
    <NavItem v-for="v in CommonData" :key="v.url" :item="v"></NavItem>
  </el-menu>
</template>

<style lang="scss" scoped>
</style>